Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Deployment for macOS x86_64 wheels on PyPi #40

Merged
merged 7 commits into from
May 17, 2024
Merged

Conversation

schuhmaj
Copy link
Collaborator

@schuhmaj schuhmaj commented May 13, 2024

Changelog

STATUS RELEASE CANDIDATE 3.2rc1
Build & Publish Python Package

The macOS x86_64 wheel deployment also broke. It seems that the runner is now using the arm64 architecture.
The current set-up using gcc is no longer applicable as it does not allow cross-compiling. Hence, we need to use Apple Clang, as in the arm64 based approach.

Our dependency TBB requires C++17. Hence, the minimal deployment target for macOS x86_64 is now macOS 10.13, released in 2017, from which point Apple Clang and friends support C++17. The support for older versions is dropped (previously, the target was 10.9) - at least for releases on PyPi, conda will still build for 10.9 and newer (since it uses OpenMP for parallelization and omits the TBB dependency).

Minor stuff along the way

  • Spelling and Grammar in the Docs (because one always finds some mistakes 🙃)
  • Bump up dependencies versions (pybind11, spdlog, yaml-cpp, TBB)
  • Increment version to 3.2 so that the JOSS release has a round number

Uff, I never release again, thinking no code changes will lead to smooth deployment... the CI/ CD environment could also change, as it happened

schuhmaj added 3 commits May 13, 2024 20:23
The GitHub Runner is arm64-based:
- cross-compiling with GNU/GCC does not work
- only Apple Clang + TBB requires C++17
- Hence minimal deployment target macOS 10.13 (release 2017)
- Discontinuance support for macOS < 10.13 (pre-2017)
@schuhmaj schuhmaj self-assigned this May 13, 2024
@schuhmaj schuhmaj changed the title Fix Deployment MacOS x86_64 Fix Deployment for macOS x86_64 wheels May 13, 2024
@schuhmaj schuhmaj changed the title Fix Deployment for macOS x86_64 wheels Fix Deployment for macOS x86_64 wheels on PyPi May 13, 2024
@schuhmaj schuhmaj requested a review from gomezzz May 13, 2024 22:38
@schuhmaj
Copy link
Collaborator Author

@gomezzz One more review for JOSS fixing macOS again. I don't say it's the last anymore - this has been proven way too often wrong 🥲

schuhmaj added 3 commits May 14, 2024 00:49
spdlog 1.14.1 an 1.14.0 are not yet
available on conda-forge. This might
cause issues for the conda-deployment
otherwise
Copy link
Collaborator

@gomezzz gomezzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@schuhmaj schuhmaj merged commit d2fc0a9 into main May 17, 2024
6 checks passed
@schuhmaj schuhmaj deleted the fix-macos-x86 branch May 17, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants